
package testSudoku;


import static org.junit.Assert.assertEquals;

import org.junit.Test;

import sudoku.Board;
import sudoku.Manager;



public class integration_test {
	
	// Test case 1: test whether changed the board when inputing 5 in x=0,y=4 in easy difficult and question 1
	@Test
	public void test_changed_Board_easyq2() 
	{
		Manager manager =new Manager(1,1);	

		char result;
		
		manager.set_board(4,0,'5');
		Board board=manager.getboard();
		
		char [][]arrayboard= board.getboard();
		
		result = '5';
		assertEquals(result,arrayboard[0][4]);
	}
		
	// Test case 2: test whether changed the board when inputing 2 in x=0,y=0 in medium difficult and question 1
	@Test
	public void test_changed_Board_mediumq2() 
	{
		Manager manager =new Manager(2,1);	

		char result;
		
		manager.set_board(0,0,'2');
		Board board=manager.getboard();
		
		char [][]arrayboard= board.getboard();
		
		result = '2';
		assertEquals(result,arrayboard[0][0]);
	}
	
	// Test case 3: test whether changed the board when inputing 8 in x=0,y=0 in hard difficult and question 1
	@Test
	public void test_changed_Board_hardq2() 
	{
		Manager manager =new Manager(3,1);	

		char result;
		
		manager.set_board(0,0,'8');
		Board board=manager.getboard();
		
		char [][]arrayboard= board.getboard();
		
		result = '8';
		assertEquals(result,arrayboard[0][0]);
	}
			
}
